package com.imooc.project.config;
/**
 * Description:
 * <p>
 * ClassName: WebConfig
 * date: 2021/8/20 13:22
 *
 * @author Yin.Liu
 * @version 1.0
 * @since JDK 1.8
 */

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @ClassName WebConfig
 * @Description 跳转页面的配置设置
 * @Author Yin.Liu8
 * @Date 2021/8/20 13:22
 * @Version 1.0
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("login/login");
    }
}
